﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CartItemBuilder.cs" company="DST Nexdox">
//   Copyright (c) DST Nexdox. All rights reserved.
// </copyright>
// <summary>
//   Defines the CartItemBuilder type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Builder
{
  using System;
  using Entities;

  public class CartItemBuilder : Builder<CartItem>
  {
    public CartItemBuilder(String cartId)
    {
      CartItemBuilder.Instance = new CartItem(cartId);
    }

    public CartItemBuilder WithDocument(Document document)
    {
      Instance.Document = document;
      return this;
    }
  }
}
